// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>ClassGroup.cs</FileName>
// <CreateTime>2017-05-06 14:07</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-06 14:07" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;

namespace Vecen.BangChuang.BangChuang.Classes {

    /// <summary>
    /// 
    /// </summary>
    public class ClassGroup: CreationAuditedEntity, IDeletionAudited {
        public const string ClassGroupThumbnailAttachmentType = "ClassGroupThumbnail";

        /// <summary>
        /// 分组名称
        /// </summary>
        public string GroupName { get; set; }

        [ForeignKey("GroupId")]
        public virtual ICollection<MicroClass> Classes { get; set; }

        /// <summary>Used to mark an Entity as 'Deleted'.</summary>
        public bool IsDeleted { get; set; }

        /// <summary>Deletion time of this entity.</summary>
        public DateTime? DeletionTime { get; set; }

        /// <summary>Which user deleted this entity?</summary>
        public long? DeleterUserId { get; set; }


        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
    }
}